<%@ include file="../../header.jsp" %>
	
<script>
  $(document).ready(function(){
    $("#userlist").tablesorter();
  });
</script>

<div class="Portlet">

	<!-- CONTENT {{ -->
	<h2><fmt:message key="search"/></h2>	
				
	<table id="userlist" class="ResultTable">
	<thead>
		<tr >
			<th><fmt:message key="id"/></th>
			<th><fmt:message key="firstName"/></th>
			<th><fmt:message key="lastName"/></th>
			<th><fmt:message key="phone"/></th>
			<th><fmt:message key="email"/></th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${model.list}" var="record"> 
		<!-- Constraint for HOST accessibility -->
		
		<tr>
			<td align="left"><c:out escapeXml="false" value="${viewLink}"/>&nbsp;</td>
			<td align="left"><c:out value="${record.firstName}"/>&nbsp;</td>
			<td align="left"><c:out value="${record.lastName}"/>&nbsp;</td>
			<td align="left"><c:out value="${record.phone}"/>&nbsp;</td>
			<td align="left"><a href="mailto:<c:out value="${record.email}"/>"><c:out value="${record.email}"/></a>&nbsp;</td>
		</tr>
		</c:forEach>
	</tbody>
	</table>
</div>
	
<%@ include file="../../footer.jsp" %>